//
//  UIImage+Extension.h
//
//  Created by 张浩 on 14-7-11.
//  Copyright (c) 2014年 张浩. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extension)

/**
 *  返回一张拉伸过的图片
 */
+ (UIImage *)resizedImage:(UIImage *)image;

/**
 *  创建一个纯色图片
 */
+ (UIImage *)imageWithColor:(UIColor *)color;

+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;

+ (UIImage *)image:(UIImage *)image withTintColor:(UIColor *)tintColor;

+ (UIImage *)image:(UIImage *)image withGradientTintColor:(UIColor *)tintColor;

+ (UIImage *)image:(UIImage *)image withTintColor:(UIColor *)tintColor blendMode:(CGBlendMode)blendMode;

/**
 *  创建一个描边图片
 */

+ (UIImage *)imageWithBackgroundColor:(UIColor *)backgroundColor borderColor:(UIColor *)borderColor;

+ (UIImage *)imageWithBackgroundColor:(UIColor *)backgroundColor borderColor:(UIColor *)borderColor size:(CGSize)size;

@end
